# 设置源文件
i2c_sources = files(
  'i2c.cpp'
)

# 设置头文件目录
i2c_inc = include_directories(
  '../../../haslib/inc',
  '.'
)

# 创建i2c动态库
i2c_lib = shared_library(
  'i2c',
  i2c_sources,
  include_directories: i2c_inc,
  link_with: haslib_lib,
  install: true,
  install_dir: install_dir + 'opt/bmc/apps/devmon/drvlib/bus/i2c'
)

# 导出i2c库依赖
i2c_dep = declare_dependency(
  link_with: i2c_lib,
  include_directories: i2c_inc
)
